package common;

/**
 * @author alex 
 * Represents a reply from the server.
 */
public class Reply
{
    //
    // Constructors/Methods
    //

    /**
     * Creates a new reply. Does not initialize the id or text.
     */
    public Reply()
    {
    }

    /**
     * Creates a new reply with the specified id and reply text.
     * 
     * @param id
     *            The id of the reply.
     * @param text
     *            The string content of the reply text.
     */
    public Reply(int id, String text)
    {
        this._Id = id;
        this._Text = text;
    }

    /**
     * Gets the id of the reply.
     * 
     * @return
     */
    public int GetId()
    {
        return this._Id;
    }

    /**
     * Sets the id of the reply.
     * 
     * @param id
     *            The id of the reply.
     */
    public void SetId(int id)
    {
        this._Id = id;
    }

    /**
     * Gets the text of the reply.
     * 
     * @return The reply text.
     */
    public String GetText()
    {
        return this._Text;
    }

    /**
     * Sets the text of the reply.
     * 
     * @param text
     *            The string content of the reply text.
     */
    public void SetText(String text)
    {
        this._Text = text;
    }

    //
    // Members
    //

    int _Id = -1;

    String _Text = null;
}